package com.woniu.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;


@Data
@ApiModel("分页参数对象")
public class PageForm {
    @NotNull(message = "页码不能为空")
    @Positive(message = "页码必须为正整数")
    @ApiModelProperty(value = "页码")
    private Integer PageNum=1;
    @NotNull(message = "每页显示的数量不能为空")
    @Positive(message = "每页显示的数量必须为正整数")
    @ApiModelProperty(value = "每页条数")
    private Integer PageSize=10;
}
